<template>
  <div id="app">
    <router-view v-if="this.$route.path === '/login'"/>
    <el-container v-else>
      <el-header><Header/></el-header>
      <el-container class="container-warp">
        <el-aside width="200px"><Sidebar/></el-aside>
        <el-main style="padding:0;">
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Header from '@/components/Header'
import Sidebar from '@/components/Sidebar'
export default {
  name: 'App',
  components: {
    Header,
    Sidebar
  },
  data () {
    return {

    }
  },
  methods: {

  },
  mounted () {

  }
}
</script>

<style rel="stylesheet/scss" lang="scss">
  @import "@/style/icon.scss";
  @import "@/style/common.scss";
  .el-main{
    transition: margin-left .28s;
    // background-color: #f3f4f5;
    overflow-x: hidden;
  }
  .container-warp{
    width: 100%;
    position: relative;
    overflow-x: auto;
    margin: 0 auto;
  }
  .el-input__icon{
    line-height: 32px;
  }
</style>
